home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
utility
/
s48v13.zip
/
DEMO.ASM
< prev
next >
Wrap
Assembly Source File
|
1996-07-23
|
809b
|
39 lines
.org 0
nop
jmp start
.org 3
nop
nop
jmp intsvc
.org 7
jmp tmrsvc
; Initialization
start clr a
mov r0,a
mov r1,a
mov r3,a
mov t,a
mov r0,#24
mov @r0,a
en tcnti
strt t
en i
; Main Loop
loop inc r0
mov a,r0
jnz loop
inc r1
jmp loop
; External Interrupt Service Routine
intsvc mov a,r0
sel rb1
movx @r0,a
inc r0
sel rb0
retr
; Timer Overflow Interrupt Service Routine
tmrsvc inc r3
retr
.end